package com.plan;

import java.text.*;
import java.util.Date;

public class T {
    public static String reverseWords(String s) {
        String[] temp=s.split(" ");
        String str="";
        for(int i=0;i<temp.length;i++){
            for(int j=temp[i].length()-1;j>=0;j--){
                char t=temp[i].charAt(j);
                str+=t;
            }str+=" ";
        }
        return str;
    }
    public static void main(String[] args) {
    int []m={2,7,11,15};
    System.out.println(reverseWords(new String("Let's take LeetCode contest")));
    }
}


